$(function () {
    var ev = new eV();
    ev.init();
})
var eV = function () {
    let host = window.location.host;
    var self = this;
    this.init = function () {
        // PC端导航触发事件
        $("li.ls1").unbind("mouseover").mouseover(function () {
            var clientW = document.body.clientWidth;
            if (clientW > 972) {
                $(this).children("ul").show();
            }
        }).unbind("mouseleave").mouseleave(function () {
            var clientW = document.body.clientWidth;
            if (clientW > 972) {
                $(this).children("ul").hide();
            }
        })
        //手机端导航触发事件
        $("li.hson").on("click", function () {
            var clientW = document.body.clientWidth;
            if (clientW < 972) {
                var childrenStatus = $(this).children("ul").css("display");
                if (childrenStatus == 'none') {
                    $(this).children("ul").show();
                } else {
                    $(this).children("ul").hide();
                }
            }
        })
        // $(".toppv ul li").unbind("click").click(function () {
        //     $(this).addClass("sharetitle_active").siblings("li").removeClass("sharetitle_active");
        // })
    }
}